\begin{frame}
\frametitle{Installing on OS X}
This should get you setup with all the tools shown today in as ``clean''
of a way as possible.
\end{frame}

\begin{frame}
\frametitle{Installing on OS X}
\begin{itemize}
\item The good news:
  \begin{itemize}
    \item OS X ships with Python installed
    \item Homebrew is a great package manager for OS X
      (\url{http://mxcl.github.com/homebrew/}).
  \end{itemize}
\item The bad news:
  \begin{itemize}
    \item We need to install xcode
    \item Building everything can take a while
  \end{itemize}
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{Installing on OS X}
\begin{itemize}
\item First, we assume you have XCode installed.
\item Next, install homebrew using the instructions here:
  \url{https://github.com/mxcl/homebrew/wiki/installation}.
\item Now that we have homebrew, we will install our binary
  dependencies
\end{itemize}
\begin{lstlisting}
brew install gfortran # for scipy
brew install pyqt
brew install pyside
brew install opencv
\end{lstlisting}
\begin{itemize}
\item Now we're ready to setup the python stuff in a virtual
  environment.
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{Installing on OS X}
\begin{itemize}
\item What is a virtual environment?
\item Python virtual environments let you keep all of your
  dependencies in one place. (through environment variable magic)
\item To install virtualenv, use the instruction here:
  \url{http://pypi.python.org/pypi/virtualenv}
\item Now create a virtual environment like so:
\end{itemize}
\begin{lstlisting}
  virtualenv down_with_matlab
  source down_with_matlab/bin/activate
\end{lstlisting}
\begin{itemize}
\item Now we are ready to install our python packages and applications
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{Installing on OS X}
\begin{itemize}
\item The order and distinction between pip and easy\_install is
  important.
\end{itemize}
\begin{lstlisting}
  easy_install readline
  pip install sphinx
  pip install spyder
  pip install ipython
  pip install tornado
  easy_install zmq
  pip install numpy
  pip install scipy
  pip install matplotlib
  pip install sympy
  easy_install SimpleITK
\end{lstlisting}
\begin{itemize}
\item Now you can use spyder, ipython, and all of these libraries as
  long as the virtual environment is activated.
\item Bonus: None of this is cluttering up your systems site-packages.
\end{itemize}
\end{frame}
